import request from '@/utils/request'



export function getCategories(data) {
    return request({
        url: 'categories',
        method: 'get',
        params: data
    })
}
export function addCategories(url, type, data) {
    return request({
        url: url,
        method: type,
        data: data
    })
}
export function getCategoriesById(url) {
    return request({
        url: url,
        method: 'get'
    })
}
export function deleteCategoriesById(url) {
    return request({
        url: url,
        method: 'delete'
    })
}